if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[LoginSession]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[LoginSession]
GO

CREATE TABLE [dbo].[LoginSession] (
	[Id] [uniqueidentifier] NOT NULL ,
	[StartedAt] [datetime] NULL ,
	[LastActivity] [datetime] NULL ,
	[AdministratorId] [int] NOT NULL 
) ON [PRIMARY]
GO

